package com.xemotion.weceem.services

import org.apache.commons.logging.LogFactory

/**
 * ContentEventListenerService from WcmEventService
 * 
 * @author Yasumasa Note
 */
class ContentEventListenerService {
    private static def log = LogFactory.getLog('com.xemotion.weceem.services.ContentEventListenerService')

    static transactional = true
	
    def clusterManagerService

    public void afterWeceemContentAdded(content) {
        log.debug "afterContentAdd() entity class: " + content.class.name
        clusterManagerService.createContent(content)
    }
	
    public void afterWeceemContentRemoved(content) {
        log.debug "afterContentRemoved() entity class: " + content.class.name
        clusterManagerService.deleteContent(content)
    }
	
    public void afterWeceemContentUpdated(content) {
        log.debug "afterContentRemoved() entity class: " + content.class.name
        clusterManagerService.updateContent(content)
    }
	
}
